<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "classroomuse".
 *
 * @property integer $id
 * @property string $stu_id
 * @property string $stu_name
 * @property string $title
 * @property string $classroom
 * @property string $telephone
 * @property string $time
 * @property string $moment
 * @property string $approved
 * @property string $feedbacked
 * @property string $remark
 */
class ClassroomuseModel extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'classroomuse';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['stu_id', 'stu_name', 'title', 'classroom', 'telephone', 'time','moment'], 'required'],
            [['stu_id', 'telephone'], 'string', 'max' => 20],
            [['stu_name', 'approved'], 'string', 'max' => 50],
            [['title', 'classroom', 'time','moment', 'feedbacked', 'remark'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'stu_id' => '学号',
            'stu_name' => '姓名',
            'title' => '活动主题',
            'classroom' => '申请教室',
            'telephone' => '联系电话',
            'time' => '日期',
        	'moment' => '时间段',
            'approved' => '审批结果',
            'feedbacked' => '使用反馈',
            'remark' => '备注',
        ];
    }
}
